<?php

namespace SinoPHP\BbdBoss\Api;

use InvalidArgumentException;
/**
 * 融合所有IP信息
 *
 * 提供给融合BOSS IP信息
 */
class SyncServerIp extends ApiAbstract {

    /**
     * @var \SinoPHP\BbdBoss\Model\BasicInformation
     */
    protected $model;

    public function v_1_0_0() {
        $param = $this->requestParams;

        if(empty($param['startTime']) || empty($param['endTime'])) {
            throw new InvalidArgumentException('', 103004);
        }
        $this->model = model('BasicInformation');

        // 融合bossIP信息
        $IpList = $this->model->getServerIpList($param['startTime'],$param['endTime']);

        $this->success($IpList);
    }

}
